package com.smartcruise.util.network.baseApi;

import java.util.Map;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.PartMap;
import retrofit2.http.Url;

/**
 * Created by FengChaoQun
 * on 2017/8/2 0012
 * 通用的上传Multipart接口
 */

public interface MultipartApi {
    @Multipart
    @POST
    Observable<ResponseBody> post(@Url String path, @PartMap Map<String, RequestBody> params);
}
